import { RoleEnum, SexEnum } from './types'
import { resultSuccess } from './types'

import menuList from './getData/menu.json'
import { Random } from 'mockjs'
import Mock from 'mockjs'

const tableData = Mock.mock({
  "success": true,
  "code": 200,
  "msg": "请求成功",
  currentPage:1,
  pageSize:10,
  totalResult:20,
  "data|5-10": [
    {
      id: Random.id(),
      repetName: Random.cword(40),
      repetNumber:Random.word(5),
      defUser: Random.cword(3),
      createTime: Random.date('yyyy-MM-dd'),
      status: "Y",
      rptType: Random.natural(1, 2)
    }
  ]
})



export default [
  {
    url: '/api/table',
    method: 'get',
    response: () => {
      return tableData
    }
  }
]